﻿using Code;
using github.heerheer.card2.UI;
using Native.Sdk.Cqp.Interface;
using Unity;

namespace Native.Core
{
    /// <summary>
    /// 酷Q应用主入口类
    /// </summary>
    public class CQMain
    {
        /// <summary>
        /// 在应用被加载时将调用此方法进行事件注册, 请在此方法里向 <see cref="IUnityContainer"/> 容器中注册需要使用的事件
        /// </summary>
        /// <param name="container">用于注册的 IOC 容器 </param>
        public static void Register(IUnityContainer unityContainer)
        {
            unityContainer.RegisterType<IMenuCall, Menu_Open>("设置菜单");
            unityContainer.RegisterType<IPrivateMessage, ReceivePrivateMessage>("私聊消息处理");
            unityContainer.RegisterType<IGroupMessage, ReceiveGroupMessage>("群消息处理");
            unityContainer.RegisterType<IAppEnable, AppEnableEvent>("应用已被启用");

        }
    }
}
